<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var str1 = prompt('请输入测试的选项');
        var str2 = prompt('请输入测试的选项','用户名和密码');    
    </script>
    <input type="button" value="删除" onclick="del()">
    <script>
        function del(){
            if(confirm('确定你要删除吗？')){

            }
            else{
                
            }
        }
    </script>
</body>
</html>